import axios from '@/libs/request/axios'
// 获取用户数据 多条件
export const getUserListData = (params) => {
    return axios.request({
        url: '/channel/channelUser/getUserListData',
        data: params,
        method: 'post'
    })
}
// 添加用户
export const addUser = (params) => {
    return axios.request({
        url: '/channel/channelUser/addUser',
        data: params,
        method: 'post'
    })
}
// 编辑用户
export const editUser = (params) => {
    return axios.request({
        url: '/channel/channelUser/editUser',
        data: params,
        method: 'post'
    })
}
// 启用用户
export const enableUser = (id, params) => {
    return axios.request({
        url: `/channel/channelUser/enable/${id}`,
        data: params,
        method: 'post'
    })
}
// 禁用用户
export const disableUser = (id, params) => {
    return axios.request({
        url: `/channel/channelUser/disable/${id}`,
        data: params,
        method: 'post'
    })
}
// 删除用户
export const deleteUser = (ids, params) => {
    return axios.request({
        url: `/channel/channelUser/delByIds/${ids}`,
        params: params,
        method: 'delete'
    })
}
